package com.sjy.project.fym.user.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sjy.framework.aspectj.lang.annotation.Excel;
import com.sjy.framework.web.domain.BaseEntity;
import com.sjy.project.fym.team.domain.FyTeam;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 防疫人员信息对象 fy_user
 * 
 * @author sjy
 * @date 2022-04-18
 */

@ApiModel(value = "防疫人员表", description = "防疫人员表")
public class FyUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long userId;

    /** 队伍ID */
    @ApiModelProperty("队伍ID")
    private Long teamId;

    /** 队伍名称 */
    @Excel(name = "队伍名称")
    @ApiModelProperty("队伍名称")
    private String teamName;
    
    /** 用户昵称 */
    @Excel(name = "姓名")
    @ApiModelProperty("姓名")
    private String userName;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
    @ApiModelProperty("用户邮箱")
    private String email;

    /** 身份证号 */
    @Excel(name = "身份证")
    @ApiModelProperty("身份证")
    private String idcard;

    /** 手机号码 */
    @Excel(name = "手机号码")
    @ApiModelProperty("手机号码")
    private String phonenumber;

    /** 用户性别（0男 1女 2未知） */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /** 微信openId */
    @ApiModelProperty("微信openId")
    private String openId;

    /** 小程序首次绑定短时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("小程序首次绑定短时间")
    private Date firstBindingTime;

    /** 头像路径 */
    @ApiModelProperty("头像路径")
    private String avatar;

    /** 帐号状态（0正常 1停用） */
    @ApiModelProperty("帐号状态（0正常 1停用）")
    private String status;

    /** 最后登录IP */
    @ApiModelProperty("最后登录IP")
    private String loginIp;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("最后登录时间")
    private Date loginDate;

    /** 负责统筹单位 */
    @Excel(name = "负责统筹单位")
    @ApiModelProperty("负责统筹单位")
    private String leadOrg;

    /** 来源单位 */
    @Excel(name = "来源单位")
    @ApiModelProperty("来源单位")
    private String fromOrg;

    /** 类别 核酸采样队... */
    @Excel(name = "类别",readConverterExp = "1=公安,2=卫健,3=社区,2=核酸采样队,3=街道工作人员,3=社区工作人员,3=社区工作者,3=志愿者")
    @ApiModelProperty("类别")
    private String userType;

    /** 岗位 */
    @Excel(name = "岗位")
    @ApiModelProperty("岗位")
    private String job;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty("删除标志（0代表存在 2代表删除）")
    private String delFlag;

    @ApiModelProperty(value = "用户token", hidden = true, required = false)
    private String token;
    
    /** 用户所在防疫队伍*/
    private FyTeam fyTeam;
    
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setTeamId(Long teamId)
    {
        this.teamId = teamId;
    }

    public Long getTeamId()
    {
        return teamId;
    }
    
    public String getTeamName() {
		return teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}

	public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setIdcard(String idcard)
    {
        this.idcard = idcard;
    }

    public String getIdcard()
    {
        return idcard;
    }
    public void setPhonenumber(String phonenumber)
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber()
    {
        return phonenumber;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getOpenId()
    {
        return openId;
    }
    public void setFirstBindingTime(Date firstBindingTime)
    {
        this.firstBindingTime = firstBindingTime;
    }

    public Date getFirstBindingTime()
    {
        return firstBindingTime;
    }
    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public String getAvatar()
    {
        return avatar;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setLoginIp(String loginIp)
    {
        this.loginIp = loginIp;
    }

    public String getLoginIp()
    {
        return loginIp;
    }
    public void setLoginDate(Date loginDate)
    {
        this.loginDate = loginDate;
    }

    public Date getLoginDate()
    {
        return loginDate;
    }
    public void setLeadOrg(String leadOrg)
    {
        this.leadOrg = leadOrg;
    }

    public String getLeadOrg()
    {
        return leadOrg;
    }
    public void setFromOrg(String fromOrg)
    {
        this.fromOrg = fromOrg;
    }

    public String getFromOrg()
    {
        return fromOrg;
    }
    public void setUserType(String userType)
    {
        this.userType = userType;
    }

    public String getUserType()
    {
        return userType;
    }
    public void setJob(String job)
    {
        this.job = job;
    }

    public String getJob()
    {
        return job;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public FyTeam getFyTeam() {
		return fyTeam;
	}

	public void setFyTeam(FyTeam fyTeam) {
		this.fyTeam = fyTeam;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("teamId", getTeamId())
            .append("userName", getUserName())
            .append("email", getEmail())
            .append("idcard", getIdcard())
            .append("phonenumber", getPhonenumber())
            .append("sex", getSex())
            .append("openId", getOpenId())
            .append("firstBindingTime", getFirstBindingTime())
            .append("avatar", getAvatar())
            .append("status", getStatus())
            .append("loginIp", getLoginIp())
            .append("loginDate", getLoginDate())
            .append("leadOrg", getLeadOrg())
            .append("fromOrg", getFromOrg())
            .append("userType", getUserType())
            .append("job", getJob())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("fyTeam", getFyTeam())
            .toString();
    }
}
